{% extends "base.html" %}
{% block content%}

<div id="content" class="group">
{% if entries %}
{% for entry in entries %}

<h2 id="post-{{entry.key.id}}"><a href="/{{ entry.link }}" rel="bookmark">{{entry.title}}</a></h2>
<p class="comments"><span class="entrymeta">{% if entry.allow_comment %}<a href="/{{entry.link}}#comments">with {{entry.commentcount}} comments</a>and {% else %}Comments are closed. {% endif %}{{entry.readcount}} views</span></p>

<div class="main">
	{{entry.content_excerpt}}
</div>

<div class="meta group">
<div class="signature">
    <p>Written by {{blog.author}} <span class="edit">{%if self.is_admin%}<a href="{{entry.edit_url}}">Edit</a>{%endif%}</span></p>
    <p>{{entry.date|datetz:"F jS, Y"}}</p>
</div>
<div class="tags">
    <p>{% if entry.categories %}Posted in {%for cate in entry.categories%} <a href="/category/{{cate.slug}}">{{cate.name}}</a> {%endfor%}{% endif %}</p>
    <p>{% if entry.strtags %}Tagged with: {%for tag in entry.tags%}<a href="/tag/{{tag|urlencode}}">{{tag}}</a> {%endfor%}{%endif%}</p>
</div>
</div>
{% endfor %}

<div class="navigation group">
	<div class="alignleft">{% if show_prev %}<a href="/page/{{ pageindex|add:"-1" }}">&laquo; Newer Entries</a>{%endif%}</div>
	<div class="alignright">{% if show_next %}<a href="/page/{{ pageindex|add:"1" }}">Older Entries &raquo; </a>{%endif%}</div>
</div>
{% else %}
<div class="warning">
	<p>Sorry, but you are looking for something that isn't here.</p>
</div>

{% endif %}
</div>
{% include "sidebar.html" %}
{% endblock %}